package com.cloudcc.mobile.entity.beau;

import java.util.List;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @Description: 对象解锁
 * @author wangzhiqiang
 * @date 2015-11-25 下午2:58:39
 * 
 */
public class BeauListFilterEntity {

	public List<SearchFilter> search_filter;
	public List<SearchSort> search_sort;
	public List<SearchView> search_view;

	public static class SearchFilter {
		public String name;
		public String label;
		public String id;
		public List<FilterChild> values;

		public static class FilterChild {
			public String id;
			public String name;
		}
	}

	public static class SearchSort implements Parcelable {
		public String id;
		public String label;
		public String name;

		@Override
		public int describeContents() {
			return 0;
		}

		@Override
		public void writeToParcel(Parcel dest, int flags) {
			dest.writeString(id);
			dest.writeString(label);
			dest.writeString(name);
		}

		public static final Creator<SearchSort> CREATOR = new Creator<SearchSort>() {
			@Override
			public SearchSort createFromParcel(Parcel source) {
				SearchSort parInfo = new SearchSort();
				parInfo.id = source.readString();
				parInfo.label = source.readString();
				parInfo.name = source.readString();
				return parInfo;
			}

			@Override
			public SearchSort[] newArray(int size) {
				return new SearchSort[size];
			}
		};
	}

	public static class SearchView {
		public String id;
		public String isdefault;// 如果是1 就是默认 ""就不是默认
		public String label;
		public String name;
		public String objId;
	}

}
